package com.hyou.sc.zuul;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.openfeign.EnableFeignClients;

import com.hyou.springboot.handler.exception.GlobalExceptionHandler;

/**
 * Zuul路由网关应用服务入口
 * 
 * @author FengChangshuo
 * @version 1.0.0 2018-04-19 16:22:19 初始创建
 */
@EnableZuulProxy
@EnableEurekaClient
@EnableFeignClients
@EnableHystrix
@SpringBootApplication(scanBasePackages = "com.hyou.sc.zuul", scanBasePackageClasses = GlobalExceptionHandler.class)
public class ZuulApplication {
    
    public static void main(String[] args) {
        SpringApplication.run(ZuulApplication.class, args);
    }
    
}
